import 'package:flutter/material.dart';

class AppThemeColors extends ThemeExtension<AppThemeColors> {
  // final Color textColor;
  final Color widgetBackgroundColor;
  final Color appBarLeadingColor;

  AppThemeColors({
    // this.textColor,
    required this.widgetBackgroundColor,
    required this.appBarLeadingColor,
  });

  @override
  ThemeExtension<AppThemeColors> copyWith({Color? widgetBackgroundColor, Color? appBarLeadingColor}) {
    return AppThemeColors(widgetBackgroundColor: widgetBackgroundColor ?? this.widgetBackgroundColor,appBarLeadingColor: appBarLeadingColor ?? this.appBarLeadingColor);
  }

  @override
  ThemeExtension<AppThemeColors> lerp(ThemeExtension<AppThemeColors>? other, double t) {
    if (other is! AppThemeColors) return this;
    return AppThemeColors(
      widgetBackgroundColor: Color.lerp(widgetBackgroundColor, other.widgetBackgroundColor, t)!,
      appBarLeadingColor: Color.lerp(appBarLeadingColor, other.appBarLeadingColor, t)!,
    );
  }
}
